'''
Created on 2011-7-11

@author: Administrator
'''
from StringIO import StringIO
import traceback
def trace():
    s = StringIO()
    traceback.print_exc(file=s)
    return s
